package DesignMode.Proxy.dynamic;

/**
 * @author VX5
 * @Title: MJC
 * @ProjectName DataStructure
 * @Description: TODO
 * @date ${DAT}14:36
 */
public class Client {
    public static void main(String[] args) {
        //创建目标对象
        IteacherDao iteacherDao = new TeacherDao();
        //给目标对象，创建代理对象
        IteacherDao proxyInstance = (IteacherDao) new ProxyFactory(iteacherDao).getProxyInstance();
//        System.out.println(proxyInstance);
        proxyInstance.teacher();
    }
}
